package com.tech.web.filter;


import javax.servlet.*;
import java.io.IOException;

/**
 * User: liuyong
 * Date: 2012-12-06
 */
public class AuthFilter implements Filter {
    public void init(FilterConfig filterConfig) throws ServletException {
        System.out.println("AuthFilter init =================");
    }

    //    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
            throws IOException, ServletException {
        System.out.println("AuthFilter doFilter =================");
        chain.doFilter(request, response);
    }

    //    @Override
    public void destroy() {
        System.out.println("AuthFilter destroy =================");
    }
}
